import request from '@/router/axios';

export const getList = (params) => {
  return request({
    url: '/api/xmbz-system/orderCard/list',
    method: 'get',
    params
  })
}

export const getCard = (params) => {
  return request({
    url: '/api/xmbz-system/orderCard/getCard',
    method: 'get',
    params
  })
}


// 新增
export const saveOrderCard = (data) => {
  return request({
    url: '/api/xmbz-system/orderCard/save',
    method: 'post',
    data
  })
}

// 更新
export const updateOrderCard = (data) => {
  return request({
    url: '/api/xmbz-system/orderCard/update',
    method: 'post',
    data
  })
}

export const deleteOrderCard = (data) => {
  return request({
    url: '/api/xmbz-system/orderCard/delete',
    method: 'post',
    data
  })
}
